#ifndef CHECKSUM_H
#define CHECKSUM_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <netinet/tcp.h>
#include <netinet/ip.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <time.h>
unsigned short get_ipv4_checksum(unsigned short *ptr, int len);
unsigned short get_ipv4_tcp_checksum(unsigned short *addr, int len, in_addr_t saddr, in_addr_t daddr);
unsigned short get_ipv6_tcp_checksum(unsigned short *addr, int len, struct in6_addr src_ip, struct in6_addr dst_ip);
#endif
